﻿using System;
using System.Collections.Generic;
using System.Text;

/*
 * Author:Conis
 * Date:
 * Description:节点操作的接口
 */
namespace Coins.Squirrel
{
    /// <summary>
    /// 叶子节点的接口
    /// </summary>
    public interface INodousLeaf
    {

    }

    /// <summary>
    /// 节点的接口
    /// </summary>
    public interface INodousNode
    {
        INodousItem AddItem(string name);
        INodousNode AddNode(string name);
        INodousLeaf AddLeaf(string name, string value);
        INodousLeaf SafeAddLeaf(string name, string value);
    }

    /// <summary>
    /// 根节点的接口
    /// </summary>
    public interface INodousRoot : INodousNode
    {
        string ToString();
        void Create();
    }

    /// <summary>
    /// 数组节点
    /// </summary>
    public interface INodousItem
    {
        INodousNode AddItemNode();
    }
}
